﻿<?xml version="1.0" encoding="utf-8"?>
<!--
        作者：          liuleyi
        更新时间：      20170227
        用途：          生成存储过程默认模板
-->
<xsl:stylesheet version="2.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:fn="http://www.w3.org/2005/xpath-functions">
	<xsl:output method="text" indent="no" encoding="utf-8" byte-order-mark="no"/>  
	<xsl:template match="/">
	<xsl:result-document encoding="utf-8" method="text" href="./generate/python/constant.py">
	<xsl:variable name="StringTypeDefine" select="document('../model/0101_StringTypeDefine.xml')"/>
	<xsl:variable name="EnumTypeDefine" select="document('../model/0102_EnumTypeDefine.xml')"/>
	<xsl:variable name="BooleanTypeDefine" select="document('../model/0103_BooleanTypeDefine.xml')"/>
	<xsl:variable name="DateTypeDefine" select="document('../model/0104_DateTypeDefine.xml')"/>
	<xsl:variable name="NumberTypeDefine" select="document('../model/0105_NumberTypeDefine.xml')"/>
	<xsl:variable name="IntegerTypeDefine" select="document('../model/0106_IntegerTypeDefine.xml')"/>#-*- encoding:UTF-8 -*-
<xsl:for-each select="$StringTypeDefine/Metadatas/*">GV_<xsl:value-of select="@typename"/> = '<xsl:value-of select="@typename"/>'
</xsl:for-each>
<xsl:for-each select="$EnumTypeDefine/Metadatas/*">GV_<xsl:value-of select="@typename"/> = '<xsl:value-of select="@typename"/>'
</xsl:for-each>
<xsl:for-each select="$BooleanTypeDefine/Metadatas/*">GV_<xsl:value-of select="@typename"/> = '<xsl:value-of select="@typename"/>'
</xsl:for-each>
<xsl:for-each select="$DateTypeDefine/Metadatas/*">GV_<xsl:value-of select="@typename"/> = '<xsl:value-of select="@typename"/>'
</xsl:for-each>
<xsl:for-each select="$NumberTypeDefine/Metadatas/*">GV_<xsl:value-of select="@typename"/> = '<xsl:value-of select="@typename"/>'
</xsl:for-each>
<xsl:for-each select="$IntegerTypeDefine/Metadatas/*">GV_<xsl:value-of select="@typename"/> = '<xsl:value-of select="@typename"/>'
</xsl:for-each>
</xsl:result-document></xsl:template>  
</xsl:stylesheet>